package com.aijk.base.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * PUSH对象
 * User: chendw
 * Date: 2016/7/19 10:55
 * To change this template use File | Settings | File Templates.
 */
public class PushRequest implements Serializable {

    /**
     * 医生ID
     */
    private Integer did;

    /**
     * 居民ECN
     */
    private Long ecn;

    /**
     * APP代码
     */
    private PushAppEnums appcode;

    private Integer category;

    @JSONField(name = "ref_id")
    private String refId;

    @JSONField(name = "ref_type")
    private Integer refType;

    private String body;

    private String url;

    /**
     * 声音
     */
    private String sound;

    /**
     * 图标小红圈的数值,IOS专用参数
     */
    private int iosBadge;

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getRefId() {
        return refId;
    }

    public void setRefId(String refId) {
        this.refId = refId;
    }

    public Integer getRefType() {
        return refType;
    }

    public void setRefType(Integer refType) {
        this.refType = refType;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public int getIosBadge() {
        return iosBadge;
    }

    public void setIosBadge(int iosBadge) {
        this.iosBadge = iosBadge;
    }

    public Long getEcn() {
        return ecn;
    }

    public void setEcn(Long ecn) {
        this.ecn = ecn;
    }

    public PushAppEnums getAppcode() {
        return appcode;
    }

    public void setAppcode(PushAppEnums appcode) {
        this.appcode = appcode;
    }

    @Override
    public String toString() {
        return "PushRequest{" +
                "did=" + did +
                ", ecn=" + ecn +
                ", appcode=" + appcode +
                ", category=" + category +
                ", refId='" + refId + '\'' +
                ", refType=" + refType +
                ", body='" + body + '\'' +
                ", url='" + url + '\'' +
                ", sound='" + sound + '\'' +
                ", iosBadge=" + iosBadge +
                '}';
    }
}
